package com.spring.cloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageUtil<T> implements Serializable {
    private static final long serialVersionUID = 6188608536424471345L;
    private Long pageNo = 1L;
    private Long pageSize = 10L;
    private T data;

    public PageUtil(Long pageNo, Long pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }
}
